find sum of digits of a number